package com.cloud.demo;

import lombok.Data;

@Data
public class ChildrenDemo extends ParentDemo{
    private String id;
    public static void main(String[] args) {
        ChildrenDemo childrenDemo = new ChildrenDemo();
        childrenDemo.setId("11");
        ParentDemo parentDemo = (ParentDemo)childrenDemo;

        System.out.println(parentDemo);
    }
}
